﻿using InventoryManagementSystem.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InventoryManagementSystem.DataModel
{
    public class User : BindableBase
    {
        private Guid id = Guid.Empty;
        public Guid Id
        {
            get
            {
                return id;
            }
            set
            {
                SetProperty(ref id, value);
            }
        }

        private string name = string.Empty;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                SetProperty(ref name, value);
            }
        }

        private string email = string.Empty;
        public string Email
        {
            get
            {
                return email;
            }
            set
            {
                SetProperty(ref email, value);
            }
        }

        private string picture = string.Empty;
        public string Picture
        {
            get
            {
                return picture;
            }
            set
            {
                SetProperty(ref picture, value);
            }
        }

        private string authenticationToken = string.Empty;
        public string AuthenticationToken
        {
            get
            {
                return authenticationToken;
            }
            set
            {
                SetProperty(ref authenticationToken, value);
            }
        }

        public User Clone()
        {
            User user = new User();
            user.Id = id;
            user.Email = email;
            user.Name = name;
            user.Picture = name;
            return user;
        }
    }
}
